
	
	
 function facebookInitialize(){
   	window.fbAsyncInit = function() {
		FB.init({
			appId : $facebook.appId,
			cookie : true,
			status : true,
			xfbml : false
		});
		
		
	 	$facebook. createShare();
		$facebook.createLike();
		$facebook.createInvite();
		//$facebook.createComment();
		//$facebook.getComment();
		FB.Canvas.setAutoGrow();
	};
	$("<div id='fb-root'></div>").appendTo('body');
	var e = document.createElement('script');

	e.src = document.location.protocol + '//connect.facebook.net/tr_TR/all.js';
	e.async = true;
	document.getElementById('fb-root').appendChild(e);

   }
   
   
   function activeCurrentLink (linkNumber){
   	var thisLink = $("#headerKLink li a").eq(linkNumber);
   	var previousLink=$(".currentLink");
    $(previousLink).attr("class","normalLink");
    $(thisLink).attr("class","currentLink");
   }

  function tabPaneInitializing(){
  	
  	 $(document).ready(function() {
            //Default Action
            $(".tab_content").hide();
             $("ul.tabs li:first").addClass("active").show();
            $(".tab_content:first").show();

            //On Click Event
            $("ul.tabs li").click(function() {
                $("ul.tabs li").removeClass("active");
                $(this).addClass("active");
                $(".tab_content").hide();
                var activeTab = $(this).find("span").attr("id");
                $(activeTab).fadeIn();
                return false;
            });
        });
  }
  
  function createLiElemenForCities(cityId,lat,lgt,cityName){
	var liElement = $("<li>").attr({'id':cityId,
	                                'class':'oneCity',
	                                 'lat':lat,
	                                 'lgt':lgt});
	var spanElement = $("<p>").html(cityName);
	liElement.append(spanElement);
	return liElement;                                 
}
 